Sprinklr
Sprinklris a customer service platform that lets you connect with your customers through chatbots, live chat, and broadcasts on various channels. You can integrate DRUID bots with Sprinklr to handle user requests within various channels.
Prerequisites
- You need to have a Sprinklr Developer account (using a service account email) to register the application that will be linked to your DRUID bot.
- You need a Client user account on the Sprinklr platform with access to your company's Sprinklr environment.
This section describes how to integrate DRUID chatbots with Sprinklr.
Step 1. Get the Sprinklr platform environment and Campaign ID
- Sign in to the Sprinkler Platform.
- Right click anywhere on the homepage and select View Page Source.
- Press Ctrl+F and search for "sentry-environment". The value of sentry-environment is where your Sprinklr instance is hosted. This is your Sprinkler environment.
- Copy the environment name you will need it to create a Sprinkler app.
- Close the Page source code page.
- Type "Campaigns" in the search bar and select the desired item from the search results.
- The list of defined campaigns appears. Campaigns are used in Sprinklr as the primary tags to categorize outbound messages and thereby effectively organize and collaborate on activities around the campaign such as tasks, assets, messages, workflows, etc.
- Copy the ID of the approved campaign as you will need it to configure the Sprinklr channel in the DRUID Portal.
You can now create a Sprinklr app.
Step 2. Create a Sprinklr app
- Sign into Sprinklr Developer Portal.
- Click on your email address appearing at the top right corner and select Apps from the drop-down menu.
- Click on the + NEW APP button to create a new application.
- In the application form, fill in the required fields:
- In the Callback URL field, enter https://www.sprinklr.com.
- Click the Save button at the bottom of the page to save the app. An API Key and Secret are generated for the app.
- Copy the API Key and Secret as you will need them to configure the Sprinklr channel in the DRUID Portal.
- Reach out to Sprinklr support to activate your app.
Field | Description |
---|---|
App Name | The name of the application. It is recommended to name your application based on the use case you will be using it for. |
APIs |
Enable the API for your Sprinklr platform environment, the one you copied at Step 1. |
Now configure the Sprinklr channel in the DRUID Portal.
Step 3. Configure the Sprinklr channel in DRUID
- Log in the DRUID Portal and from the main menu, select your bot. The bot configuration page appears by default on the Details tab.
- Click the Channels tab, and then click Sprinklr. The channel info section expands.
- Fill in the fields as follows:
- Generate the Webhook Secret.
- Copy the Webhook inbound URL and the Webhook Secret as you will need them to configure the Sprinkler webhook.
- Click the Publish button and wait until the channel is activated.
Field | Description |
---|---|
Environment | The name of the environment you copied at Step 1, substep 4. |
Campaign ID | The ID of the campaign you copied at Step 1, substep 8. The bot messages will be sent to this campaign. |
ApiHost |
The Sprinklr API URL. It is in the format: https://api<version>.sprinklr.com. For example: https://api3.sprinklr.com. You can get it from the Sprinklr documentation. |
API key | The API Key and Secret you copied at Step 2, substep 7. |
API secret |
Step 4. Create Sprinklr webhook
- Sign in to the Sprinkler Platform.
- Type "webhook" in the search bar and select the item from the search results.
- Click the Add Webhook button at the top-right corner of the page.
- In the webhook configuration page, enter the following details:
- Message Received
- Message Association Change
- Case Updated
- Save the webhook.
From the main menu, click API 2.0 and on the page, click Webhooks.
Field | Description |
---|---|
Name | Enter a webhook name. |
Authentication Type | Select Pre-Shared Key. |
Pre-Shared Key | Enter the Webhook Secret you copied from the DRUID Portal at Step 3, substep 5. |
Callback URL |
Enter the Webhook inbound URL you copied from the DRUID Portal at Step 3, substep 5. Click the Verify Webhook button available in this field. |
Subscription |
Add the following subcriptions: |
You have successfully completed the Sprinklr channel configuration.